package cn.com.mtmming.mtmsystemserver;



import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloController {

    @Value("${server.port}")
    String port;
    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    //测试地址：  http://localhost:8763/hello     http://localhost:8101/system-server/hello
    public String home() {
        return "此微服务模块访问的port为:" +port;
    }



}
